package com.fjb.pojo.order;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;

/**
 * <p>
 * 订单产品信息
 * </p>
 *
 * @author hemiao
 * @since 2020-02-11
 */
public class OrderProduct implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private Integer mainUserId;

    private Integer userId;

    /**
     * 卖家用户id
     */
    private Integer sellerUserId;

    /**
     * 订单id
     */
    private Integer orderId;

    /**
     * 分类id
     */
    private Integer categoryId;

    /**
     * 品牌id
     */
    private Integer brandId;

    /**
     * 产品id
     */
    private Integer productId;

    /**
     * 添加购物车 时的  产品名称
     */
    private String productName;

    /**
     * 产品单位
     */
    private String productUnit;

    private Integer attrSkuId;

    /**
     * 价格
     */
    private BigDecimal skuPrice;

    /**
     * 购买数量
     */
    private Integer skuCount;

    /**
     * 属性sku url  没有设置的话 就是 主图片
     */
    private String skuFileUrl;

    /**
     * 属性sku json  ：{"titleCode":"6035725008","titleName":"颜色","attrCodeOne":"2464190446","attrCodeTwo":"0","attrName":"黑色"}
     */
    private String attrSkuJson;

    private Integer createUserId;

    private LocalDateTime createTime;

    /**
     * 备注
     */
    private String remark;

    /**
     * 来源   电脑端 windos ，微信小程序 wx_applet，app
     */
    private String dataSource;

    private Integer updateUserId;

    private LocalDateTime updateTime;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
    public Integer getMainUserId() {
        return mainUserId;
    }

    public void setMainUserId(Integer mainUserId) {
        this.mainUserId = mainUserId;
    }
    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }
    public Integer getSellerUserId() {
        return sellerUserId;
    }

    public void setSellerUserId(Integer sellerUserId) {
        this.sellerUserId = sellerUserId;
    }
    public Integer getOrderId() {
        return orderId;
    }

    public void setOrderId(Integer orderId) {
        this.orderId = orderId;
    }
    public Integer getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(Integer categoryId) {
        this.categoryId = categoryId;
    }
    public Integer getBrandId() {
        return brandId;
    }

    public void setBrandId(Integer brandId) {
        this.brandId = brandId;
    }
    public Integer getProductId() {
        return productId;
    }

    public void setProductId(Integer productId) {
        this.productId = productId;
    }
    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }
    public String getProductUnit() {
        return productUnit;
    }

    public void setProductUnit(String productUnit) {
        this.productUnit = productUnit;
    }
    public Integer getAttrSkuId() {
        return attrSkuId;
    }

    public void setAttrSkuId(Integer attrSkuId) {
        this.attrSkuId = attrSkuId;
    }
    public BigDecimal getSkuPrice() {
        return skuPrice;
    }

    public void setSkuPrice(BigDecimal skuPrice) {
        this.skuPrice = skuPrice;
    }
    public Integer getSkuCount() {
        return skuCount;
    }

    public void setSkuCount(Integer skuCount) {
        this.skuCount = skuCount;
    }
    public String getSkuFileUrl() {
        return skuFileUrl;
    }

    public void setSkuFileUrl(String skuFileUrl) {
        this.skuFileUrl = skuFileUrl;
    }
    public String getAttrSkuJson() {
        return attrSkuJson;
    }

    public void setAttrSkuJson(String attrSkuJson) {
        this.attrSkuJson = attrSkuJson;
    }
    public Integer getCreateUserId() {
        return createUserId;
    }

    public void setCreateUserId(Integer createUserId) {
        this.createUserId = createUserId;
    }
    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }
    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }
    public String getDataSource() {
        return dataSource;
    }

    public void setDataSource(String dataSource) {
        this.dataSource = dataSource;
    }
    public Integer getUpdateUserId() {
        return updateUserId;
    }

    public void setUpdateUserId(Integer updateUserId) {
        this.updateUserId = updateUserId;
    }
    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return "OrderProduct{" +
        "id=" + id +
        ", mainUserId=" + mainUserId +
        ", userId=" + userId +
        ", sellerUserId=" + sellerUserId +
        ", orderId=" + orderId +
        ", categoryId=" + categoryId +
        ", brandId=" + brandId +
        ", productId=" + productId +
        ", productName=" + productName +
        ", productUnit=" + productUnit +
        ", attrSkuId=" + attrSkuId +
        ", skuPrice=" + skuPrice +
        ", skuCount=" + skuCount +
        ", skuFileUrl=" + skuFileUrl +
        ", attrSkuJson=" + attrSkuJson +
        ", createUserId=" + createUserId +
        ", createTime=" + createTime +
        ", remark=" + remark +
        ", dataSource=" + dataSource +
        ", updateUserId=" + updateUserId +
        ", updateTime=" + updateTime +
        "}";
    }
}
